<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/common/taglibs.jsp" %>
<div class="left-bar">
	<div class="personer" id="ownItem">
		<div class="personer-projects item" data-toggle="fold" fold-hidden="false">
			<i class="fileicon iconfont icon-weibiaoti1"></i>我的项目
			<span class="iconfold iconfont icon-zuoyoujiantouicon10024"></span>
		</div>
		<a class="btn-block item allItem active"><i class="iconfont icon-geren"></i>全部（${allDataCount }）</a>
			<c:forEach items="${statisProgress }" var="statisProgress">
				<%-- <c:if test="${statisProgress[0].progressType==1 }"> --%>
		            <a class="btn-block item progress-key">
		            	<i class="progress-name" data-value='${statisProgress[0].id }' data-toggle="tooltip" title='${statisProgress[0].name }'>
		            		<i class="iconfont icon-geren"></i>${statisProgress[0].name }
		            	</i>（<i class="progress-count">${statisProgress[1] }</i>）
		            	<c:if test="${statisProgress[0].name != '新收到' }">
			                <span>
			            		<i class="btn-tinge edit-progress" data-toggle="modal" data-target="#change-progress-modal">修改</i>
			            		<i class="iconfont icon-shanchu del-progress btn-tinge"></i>
			            	</span>
		            	</c:if>
		            </a>
				<%-- </c:if> --%>
			</c:forEach>
			<c:forEach items="${statisProgressOrganize }" var="statisProgressOrganize">
	            <a class="btn-block item progress-key">
	            	<i class="progress-name" data-value='${statisProgressOrganize[0].id }' data-toggle="tooltip" title='${statisProgressOrganize[0].name }'>
	            		<i class="iconfont icon-rongyu"></i>${statisProgressOrganize[0].name }
	            	</i>（<i class="progress-count">${statisProgressOrganize[1] }</i>）
	            </a>
			</c:forEach>
			<c:if test="${organizeProgress!=null }">
				<c:forEach items="${organizeProgress }" var="organizeProgress">
		            <a class="btn-block item progress-key">
		            	<i class="progress-name" data-value='${organizeProgress[0] }' data-toggle="tooltip" title='${organizeProgress[1] }'>
		            		<i class="iconfont icon-rongyu"></i>${organizeProgress[1] }
		            	</i>（<i class="progress-count">0</i>）
		            </a>
				</c:forEach>
			</c:if>
	</div>
	<a class="btn-block new-progress text-center" data-toggle="modal" data-target="#add-progress-modal"><i class="iconfont icon-tianjia"></i>&nbsp;新增进度</a>
<%-- 	<div class="left-bar-item" id="parentItem">
		<c:forEach items="${statisProgress }" var="statisProgress">
			<c:if test="${statisProgress[0].progressType==2 && statisProgress[0].parentId==0 }">
				<div class="left-bar-item">
					<div class="vc-projects item" data-toggle="fold">
			    		<i class="fileicon-copy iconfont icon-loucengpingmiantu"></i>${statisProgress[0].name }
			    		<span class="iconfold iconfont icon-zuoyoujiantouicon10024"></span>
			    	</div>
			    	<c:forEach items="${_statisProgress }" var="_statisProgress">
			    		<c:if test="${statisProgress[0].id == _statisProgress[0].parentId }">
				            <a class="btn-block item progress-key">
				            	<i class="progress-name" data-value='${_statisProgress[0].id }' data-toggle="tooltip" title='${_statisProgress[0].name }'>
				            		<i class="iconfont icon-rongyu"></i>${_statisProgress[0].name }
				            	</i>（<i class="progress-count">${_statisProgress[1] }</i>）
				            </a>
			    		</c:if>
			    	</c:forEach>
				</div>
			</c:if>
		</c:forEach>
    </div> --%>
</div>
